package com.squirrel.common.param.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * @Description PhoneParam 手机号参数
 * @Author 关远键
 * @Version v1.0.0
 * @Date 2021/11/24 10:21
 */
@Data
@ApiModel("手机号参数")
public class PhoneParam {

    @ApiModelProperty(value = "手机号", required = true)
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "请输入正确的手机号")
    private String phone;

}
